package com.aracky.system.model.entity;

import com.aracky.common.entitybase.BaseCommonEntity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 查询表头信息表
 * </p>
 *
 * @author zengzhiping
 * @since 2022-07-18 10:05:43
 */
@Getter
@Setter
@TableName("sys_table_header")
@ApiModel(value = "SysTableHeader对象", description = "查询表头信息表")
public class SysTableHeader extends BaseCommonEntity {

    @ApiModelProperty("表头ID")
    @TableId(value = "head_id", type = IdType.AUTO)
    private Long headId;

    @ApiModelProperty("菜单父id")
    @TableField("parent_id")
    private Long parentId;

    @ApiModelProperty("表名")
    @TableField("table_name")
    private String tableName;

    @ApiModelProperty("说明")
    @TableField("instruction")
    private String instruction;

    @ApiModelProperty("查询api")
    @TableField("query_api")
    private String queryApi;

    @ApiModelProperty("请求方法")
    @TableField("qurey_method")
    private String qureyMethod;

    @ApiModelProperty("删除标志（1代表存在 0代表删除）")
    @TableField("del_flag")
    @TableLogic(delval = "0",value = "1")
    private Boolean delFlag;

    @ApiModelProperty("主键")
    @TableField("head_primary")
    private String headPrimary;

    @ApiModelProperty("外键")
    @TableField("head_foreign_key")
    private String headForeignKey;

    @ApiModelProperty("是否合并行")
    @TableField("is_table_merge")
    private Boolean isTableMerge;

    @ApiModelProperty("合并标志")
    @TableField("merge_key")
    private String mergeKey;

}
